
#if !defined USER_H
#define USER_H
#include<string>
#include <iostream>
using namespace std;
class User
{

public:
User(string loginName="XxX", string loginPassword="666666");

virtual~User(){}
void setuser ();
void showUser();
void setLoginName (string loginName);
void setIoginPassword(string loginPassword);
string getLoginName();
string getLoginPassword();
void readFromFile(fstream &);
void writeToFile(fstream &) const;

 Protected:
string loginName;
string loginPassword;
};
#endif


